Component({
  properties: {
    buttonList: {
      type: Array
    }
  },
  data: {
  },
  methods: {
    onButton (event) {
      const { index } = event.currentTarget.dataset
      this.triggerEvent('click', { index })
    }
  }
})